#!/bin/sh
source ../../var.install

#install necessary libs
apt-get install -y build-essential
apt-get install -y vim-full


#create ~/.vim folder if missing
if [ ! -d $VIMSTALLPATH ];
then
	mkdir $VIMINSTALLPATH
fi

#install all plugin
for packPath in ./*;
do
	if [ -d $packPath ];
	then
echo "$packPath"
		cd $packPath
		source ./install.sh
		cd ..
	fi
done

#copy vimrc scripts
cp vimrc ~/vimrc
mv ~/vimrc ~/.vimrc

#TODO :install cscope
#TODO: install ctags
#TODO: install fullscreen
#TODO: install autocomplete
#TODO: copy vimrc
#TODO: add path of google shell path
